home *** CD-ROM | disk | FTP | other *** search
/ United Public Domain Gold 2 / United Public Domain Gold 2.iso / music_utilities / pt012.dms / pt012.adf / K4Editor / InstallLibs < prev    next >
Text File  |  1992-05-14  |  2KB  |  56 lines

  1. .K ""
  2. echo "This script will install midi.library and req.library, after first"
  3. echo "checking to see if you already have one installed.  If so, it will"
  4. echo "check the version number of the installed one, and give you the"
  5. echo "option of installing the one found here."
  6. echo ""
  7.  
  8. ask "Do you wish to continue with the installation? [y/n]"
  9. if WARN
  10.   if not EXISTS libs:midi.library
  11.     echo "No existing library, installing libs:midi.library..."
  12.     copy libs/midi.library libs:midi.library
  13.   else
  14.     echo "The version here is 7.94."
  15.     failat 20
  16.     echo "Your currently installed library version is:"
  17.     version midi.library 7 94
  18.     if WARN
  19.       ask "Do you wish to update libs:midi.library? [y/n]"
  20.       if WARN
  21.         echo "Updating libs:midi.library..."
  22.     protect libs:midi.library rwed
  23.         copy libs/midi.library libs:midi.library
  24.       else
  25.         echo "libs:midi.library unchanged."
  26.       endif
  27.     else
  28.       echo "The current installed version is up to date."
  29.     endif
  30.   endif
  31.   if not EXISTS libs:req.library
  32.     echo "No existing library, installing libs:req.library..."
  33.     copy libs/req.library libs:req.library
  34.   else
  35.     echo "The version here is 2.5."
  36.     failat 20
  37.     echo "Your currently installed library version is:"
  38.     version req.library 2 5
  39.     if WARN
  40.       ask "Do you wish to update libs:req.library? [y/n]"
  41.       if WARN
  42.         echo "Updating libs:req.library..."
  43.     protect libs:req.library rwed
  44.         copy libs/req.library libs:req.library
  45.       else
  46.         echo "libs:req.library unchanged."
  47.       endif
  48.     else
  49.       echo "The current installed version is up to date."
  50.     endif
  51.   endif
  52. endif
  53.  
  54. echo "All Done.  Click close gadget to get rid of window."
  55. endcli
  56.